package atom.core3.hibernate.spring.dao.impl;

import java.util.List;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class BaseJdbcDao extends JdbcDaoSupport 
{
	public int[] batchSql(String sql[])
	{
		return this.getJdbcTemplate().batchUpdate(sql);
	}
	public int[] batchSql(List<String> sqllist)
	{
		String sql[] = new String[sqllist.size()];
		for(int i=0;i<sqllist.size();i++)
		{
			sql[i]=sqllist.get(i);
		}
		return this.getJdbcTemplate().batchUpdate(sql);
	}

}
